package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("f_app")
public class App extends BaseEntity implements Comparable<App>{
    /**
     * 序号
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 班级id
     */
    private String  classId;

    @TableField(exist = false)
    private String typeName;

    private String category;

    @Override
    public int compareTo(App o) {
        if (this.classId.compareTo(o.classId) > 0) {
            return 1;
        } else {
            return -1;
        }
    }
}
